@import "@/assets/scss/tools.scss";
@import "@/assets/scss/theme.scss";
$page-bg: $src-cdn + '/mine-petal-1.png';
$compound-btn-bg: $src-cdn + '/mine-petal-2.png';
$small-btn-bg: $src-cdn + '/mine-petal-3.png';
page {
  width: 100%;
  background: url($page-bg)
    no-repeat;
  background-size: 100% auto;
}

.mine-petal {
  height: 100%;
  color: $text-color-primary;
  &__flower {
    padding: 0 30px;
    position: relative;
    margin-top: 32px;
    &-info {
      padding-left: 18px;
      &--title {
        color: #a13d0f;
        font-size: 32px;
        margin-bottom: 48px;
        font-weight: bold;
        .sub-title {
          font-size: 28px;
          font-weight: normal;
        }
      }
      &--number {
        @include normal-flex(flex-start);
        font-size: 48px;
        margin-bottom: 18px;
        font-weight: bold;
        > image {
          width: 136px;
          height: 136px;
          margin-right: 32px;
        }
      }

      &--compound {
        width: 244px;
        height: 72px;
        @include setBgi($compound-btn-bg);
        @include btnStyle;
        @include normal-flex;
      }
      &--cant-compound {
        opacity: 0.5;
      }
    }
    &--bg {
      position: absolute;
      z-index: 80;
      right: 32px;
      top: 0;
      width: 290px;
      height: 308px;
    }
  }
  &__petal-sum {
    margin-top: 32px;
    position: relative;
    &::after,
    &::before {
      content: "";
      background-color: #cb9064;
      width: 10px;
      height: 32px;
      position: absolute;
      top: -32px;
      left: 112px;
    }
    &::before {
      left: auto;
      right: 112px;
    }
    .mine-petal__flower-info--number {
      @include normal-flex(space-between);
      font-size: 36px;
      &__sum {
        @include normal-flex;
      }
      .petal-icon {
        width: 88px;
        height: 88px;
        margin-right: 24px;
      }
    }
  }
  &__switch {
    padding: 0 30px;
    margin-top: 48px;
    @include normal-flex;
    &--item {
      @include normal-flex;
      flex: 1;
    }
    .active {
      color: $text-color-normal;
      font-weight: bold;
      font-size: 36px;
      position: relative;
      &::after {
        content: "";
        width: 40px;
        height: 8px;
        border-radius: 200px;
        background-color: #ff8000;
        position: absolute;
        left: 50%;
        bottom: -16px;
        transform: translateX(-50%);
      }
    }
  }
  &__list {
    margin-top: 68px;
    padding: 0 30px;
    &__partial-title {
      font-size: 28px;
    }
    &__default {
      text-align: center;
      color: $text-color-secondary;
      font-size: 28px;
      margin-top: 140px;
      > image {
        width: 373.98px;
        height: 200px;
        margin-bottom: 30px;
        opacity: 0.4;
      }
    }
  }
  &__flower-record,
  &__get-petal {
    .mine-petal__list__partial-title {
      margin-top: 48px;
      @include normal-flex(space-between);
      .total-flower-num {
        color: $text-color-secondary;
        font-size: 28px;
      }
    }
    &__item {
      padding: 0 32px;
      margin-top: 32px;
      min-height: 154px;
      background: #fffdf8;
      border: 2px solid #fcefda;
      border-radius: 20px;
      @include normal-flex(space-between);
      &--info {
        display: flex;
        flex-direction: column;
      }
      &--name {
        font-size: 32px;
        font-weight: bold;
      }
      &--time {
        font-size: 24px;
        color: $text-color-secondary;
        margin-top: 12px;
      }
      &--num {
        color: #ff8000;
        font-size: 28px;
      }
      .petal-use {
        color: $text-color-secondary;
      }
    }
  }
  &__get-petal {
    &__item {
      min-height: 168px;
      &--name {
        margin-bottom: 16px;
      }
      &--icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
        vertical-align: middle;
      }
      &--add-num {
        font-size: 28px;
      }
      &--add-tip {
        font-size: 24px;
        color: $text-color-secondary;
      }
      &--btn {
        width: 190px;
        height: 56px;
        font-size: 28px;
        @include setBgi($small-btn-bg);
        @include btnStyle;
        @include normal-flex;
      }
    }
  }
  .share-btn {
    margin: 0;
    border-radius: 100px;
  }
}
